/* 通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

page {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28rpx;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

.container {
  padding: 20rpx;
}

.btn {
  display: inline-block;
  padding: 16rpx 32rpx;
  border-radius: 40rpx;
  font-size: 28rpx;
  text-align: center;
  text-decoration: none;
  background-color: #ff4500;
  color: #fff;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: #ff4500;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: #333;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-primary {
  color: #ff4500;
}

.text-secondary {
  color: #999;
}

.text-danger {
  color: #ff3b30;
}

.text-success {
  color: #4cd964;
}

.text-warning {
  color: #ffcc00;
}

.font-bold {
  font-weight: bold;
}

.font-normal {
  font-weight: normal;
}

.mt-10 {
  margin-top: 10rpx;
}

.mt-20 {
  margin-top: 20rpx;
}

.mt-30 {
  margin-top: 30rpx;
}

.mt-40 {
  margin-top: 40rpx;
}

.mb-10 {
  margin-bottom: 10rpx;
}

.mb-20 {
  margin-bottom: 20rpx;
}

.mb-30 {
  margin-bottom: 30rpx;
}

.mb-40 {
  margin-bottom: 40rpx;
}

.ml-10 {
  margin-left: 10rpx;
}

.ml-20 {
  margin-left: 20rpx;
}

.ml-30 {
  margin-left: 30rpx;
}

.ml-40 {
  margin-left: 40rpx;
}

.mr-10 {
  margin-right: 10rpx;
}

.mr-20 {
  margin-right: 20rpx;
}

.mr-30 {
  margin-right: 30rpx;
}

.mr-40 {
  margin-right: 40rpx;
}

.pt-10 {
  padding-top: 10rpx;
}

.pt-20 {
  padding-top: 20rpx;
}

.pt-30 {
  padding-top: 30rpx;
}

.pt-40 {
  padding-top: 40rpx;
}

.pb-10 {
  padding-bottom: 10rpx;
}

.pb-20 {
  padding-bottom: 20rpx;
}

.pb-30 {
  padding-bottom: 30rpx;
}

.pb-40 {
  padding-bottom: 40rpx;
}

.pl-10 {
  padding-left: 10rpx;
}

.pl-20 {
  padding-left: 20rpx;
}

.pl-30 {
  padding-left: 30rpx;
}

.pl-40 {
  padding-left: 40rpx;
}

.pr-10 {
  padding-right: 10rpx;
}

.pr-20 {
  padding-right: 20rpx;
}

.pr-30 {
  padding-right: 30rpx;
}

.pr-40 {
  padding-right: 40rpx;
}

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.justify-start {
  justify-content: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.align-start {
  align-items: flex-start;
}

.align-center {
  align-items: center;
}

.align-end {
  align-items: flex-end;
}

.flex-1 {
  flex: 1;
}

.flex-wrap {
  flex-wrap: wrap;
}

.bg-white {
  background-color: #fff;
}

.bg-gray {
  background-color: #f5f5f5;
}

.border {
  border: 1rpx solid #eee;
}

.border-top {
  border-top: 1rpx solid #eee;
}

.border-bottom {
  border-bottom: 1rpx solid #eee;
}

.border-left {
  border-left: 1rpx solid #eee;
}

.border-right {
  border-right: 1rpx solid #eee;
}

.radius-4 {
  border-radius: 4rpx;
}

.radius-8 {
  border-radius: 8rpx;
}

.radius-12 {
  border-radius: 12rpx;
}

.radius-20 {
  border-radius: 20rpx;
}

.radius-full {
  border-radius: 50%;
}

.overflow-hidden {
  overflow: hidden;
}

/* 商品卡片样式 */
.goods-card {
  display: flex;
  background-color: #fff;
  border-radius: 12rpx;
  overflow: hidden;
  margin-bottom: 20rpx;
}

.goods-card-image {
  width: 200rpx;
  height: 200rpx;
  margin-right: 20rpx;
}

.goods-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20rpx 0;
}

.goods-card-name {
  font-size: 28rpx;
  line-height: 36rpx;
  max-height: 72rpx;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.goods-card-price {
  font-size: 32rpx;
  color: #ff4500;
  font-weight: bold;
}

.goods-card-original-price {
  font-size: 24rpx;
  color: #999;
  text-decoration: line-through;
  margin-left: 10rpx;
}

.goods-card-sales {
  font-size: 24rpx;
  color: #999;
}

/* 导航栏样式 */
.navbar {
  height: 100rpx;
  line-height: 100rpx;
  background-color: #fff;
  border-bottom: 1rpx solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.navbar-title {
  font-size: 36rpx;
  font-weight: bold;
}

.navbar-back {
  position: absolute;
  left: 20rpx;
  top: 0;
  width: 100rpx;
  height: 100rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-back image {
  width: 24rpx;
  height: 40rpx;
}

/* 底部导航样式 */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120rpx;
  background-color: #fff;
  border-top: 1rpx solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150rpx;
  height: 100%;
}

.tabbar-item image {
  width: 48rpx;
  height: 48rpx;
  margin-bottom: 8rpx;
}

.tabbar-item text {
  font-size: 24rpx;
}

.tabbar-item.active text {
  color: #ff4500;
}    